Text = "FROM and WHERE parts of the query can be changed if required. New ranges and links can be added and existing ones changed."
Top = 4320
Width = 7575
End
Begin TextBox Text4
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 735
Left = 480
MultiLine = -1 'True
TabIndex = 10
Text = "SELECT lists fields used in the report including those in formulas, totals, sorts, selections and ranges. FROM lists tables in the report followed by their aliases. WHERE specifies field ranges and links between tables."
Top = 3600
Width = 7575
End
Begin TextBox Text3
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
Height = 255
Left = 480
TabIndex = 9
Text = "Description:"
Top = 3240
Width = 1215
End
Begin TextBox Text2
Alignment = 1 'Right Justify
BackColor = &H00C0C0C0&
Height = 1935
Left = 360
MultiLine = -1 'True
TabIndex = 8
Top = 3000
Width = 7815
End
Begin SSPanel Panel3D1
Alignment = 1 'Left Justify - MIDDLE
BevelInner = 1 'Inset
BorderWidth = 1
Height = 2175
Left = 240
TabIndex = 0
Top = 2880
Width = 8055
End
Begin CommandButton Command5
Caption = "Help"
Height = 375
Left = 7080
TabIndex = 7
Top = 5280
Width = 1215
End
Begin CommandButton Command4
Caption = "Cancel"
Height = 375
Left = 5625
TabIndex = 6
Top = 5280
Width = 1215
End
Begin SSPanel Statusbar
Alignment = 1 'Left Justify - MIDDLE
BorderWidth = 1
Height = 495
Left = 0
TabIndex = 5
Top = 5880
Width = 9735
End
Begin TextBox Text1
Height = 2535
Left = 240
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 4
Top = 240
Width = 8055
End
Begin CommandButton Command3
Caption = "OK"
Height = 375
Left = 4200
TabIndex = 3
Top = 5280
Width = 1215
End
Begin CommandButton Command2
Caption = "Set SQL Query"
Height = 375
Left = 2160
TabIndex = 2
Top = 5280
Width = 1935
End
Begin CommandButton Command1
Caption = "Get SQL Query"
Height = 375
Left = 240
TabIndex = 1
Top = 5280
Width = 1815
End
Begin Menu MenuFile
Caption = "&File"
Begin Menu MenuFileExit
Caption = "&Exit"
End
End
Sub Command1_Click ()
Dim Query As String
Dim TextHandle As Integer, TextLength As Integer
If PEGetSQLQuery(JobNum, TextHandle, TextLength) = False Then